//
//  LJJWaterflowLayout.h
//  瀑布流
//
//  Created by 刘家俊 on 17/4/25.
//  Copyright © 2017年 Andrew. All rights reserved.
//

#import <UIKit/UIKit.h>

@class LJJWaterflowLayout;

@protocol LJJWaterflowLayoutDelegate <NSObject>

- (CGFloat)ljj_waterflowLayout:(LJJWaterflowLayout *)waterflowLayout heightForItemAtIndex:(NSUInteger)index itemWidth:(CGFloat)itemWidth;

@optional

/** 有多少列 */
- (CGFloat)ljj_columnCountIndWaterflowLayout:(LJJWaterflowLayout *)waterFlowLayout;
/** item左右边距 */
- (CGFloat)ljj_columnMarginInWaterflowLayout:(LJJWaterflowLayout *)waterflowLayout;
/** item上下行距 */
- (CGFloat)ljj_rowMarginInWaterflowLayout:(LJJWaterflowLayout *)waterflowLayout;
/** collectionView上左下右 */
- (UIEdgeInsets)ljj_edgeInsetsInWaterflowLayout:(LJJWaterflowLayout *)waterflowLayout;


@end

@interface LJJWaterflowLayout : UICollectionViewLayout

/* 代理 */
@property (nonatomic, weak) id <LJJWaterflowLayoutDelegate> delegate;


@end
